package cn.ywang.current.demo;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author BeatificWang
 * @date 2019/7/30 22:34
 */
public class ConditionDemo {
	public static void main(String[] args) {
		Lock lock = new ReentrantLock();
		Condition condition = lock.newCondition();
		new ConditionWait(lock, condition).start();
		new ConditionSignal(lock, condition).start();
	}
}
